Skip to content

Fix #1910: stop naming framework files by on-disk paths adopters do not have - #1949

Open
amrmelsayed wants to merge 11 commits into
mainfrom
builder/bugfix-1910
Open

amrmelsayed wants to merge 11 commits into
mainfrom
builder/bugfix-1910

Conversation

@amrmelsayed

@amrmelsayed amrmelsayed commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Shipped prompts and templates named framework files by an on-disk path (protocols/spir/templates/spec.md, codev/protocols/experiment/protocol.md, "Read the full protocol documentation in codev/protocols/"). In adopter workspaces those files exist only inside the installed package, so agents searched the disk for them (find / on Windows, Spec 1658 finding M14). This PR removes those paths from the sites the issue found. Per the owner, it also tells agents never to search from the filesystem root.

Fixes #1910

Scope is cause 1 only, as the architect set it. Cause 2 (children of a timed-out command surviving on Windows) is #1915.

Fix

Both codev-skeleton/ and codev/, byte-identical:

  • protocols/{spir,aspir}/consult-types/spec-review.md now reads "the spec follows the SPIR spec template that the specify prompt inlines."
  • protocols/{spir,aspir}/protocol.json: the spec_template check description drops the path. Porch does not read this text at runtime.
  • templates/{CLAUDE,AGENTS}.md: the protocol list drops its nine path parentheticals. "Read the full protocol documentation in codev/protocols/" becomes "Porch and afx spawn give each agent the full text of the protocol it is running." The two templates still share a body.
  • Owner's rule, in roles/builder.md (new "Finding files" section), roles/architect.md (Boundaries) and the templates' File Resolution section: Never search from the filesystem root (find /, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.
  • framework-ref-audit.ts: drops a comment line that called the template's protocol-path list intentional. No logic change.

R9, approved by the owner 2026-11-23. Rewording spec-review.md trips the Spec 1280 deletion guard by design. The two baselines are re-captured and logged as R9 in codev/resources/1280-retirements.md.

Left as is, for the owner to decide: resources/workflow-reference.md ("Full SPIR protocol: codev/protocols/spir/protocol.md") and the resources/commands/overview.md link still name paths. I treated them as orientation, not as the instructions that sent agents searching. The issue's verification grep will still list them.

Test Plan

CMAP

  • gemini: skipped (the agy CLI is not installed on this host; non-blocking).
  • codex: APPROVE.
  • claude: REQUEST_CHANGES first, then APPROVE after fixes.

Both reviews were of a broader earlier version of this PR. At owner review it was trimmed to the above, removing sites and dropping resolver jargon. Nothing was added after the reviews.

Flaky Tests

…ters do not have

Shipped prompts, protocol.json check descriptions, the CLAUDE.md/AGENTS.md
templates and the workflow/command reference docs named protocols, templates
and roles by location (codev/protocols/<name>/protocol.md,
protocols/spir/templates/spec.md, codev/roles/<x>.md). In adopter workspaces
those resolve from the installed package, so agents searched the disk for
them (find / on Windows). Reworded in both trees: content is delivered by
includes, the spawn prompt and porch; codev/ paths appear only as where a
customization goes.
…disk path

New guard scans both trees for framework paths outside resolver includes
and customization pointers. Re-baselines the Spec 1280 deletion guard for
the two spec-review.md lines (R9 in 1280-retirements.md).
…ces; guard catches them

Templates and cheatsheets still pointed at `codev/protocols/` for the full
protocol text; consult.md and the consult skill gave a fixed load path.
Reworded in both trees and all skill copies. The guard now flags any
codev/protocols|roles mention (directories and <placeholder> forms
included) unless the line explains customization or resolution, and no
longer exempts lines that merely contain "local".
…filesystem root

Owner scope addition. Builder, architect and consultant roles and the
CLAUDE.md/AGENTS.md templates (both trees) now say: search within the
project or with built-in file search tools, never from the filesystem
root; a framework file not in the project is delivered another way.
Also regenerates the shipped-skill hash history for the consult skill
edit in the previous commit.
…plain wording

Owner review: the sweep was too broad and some rewording was jargon.
Reverts the consult skill and its hash entry, the reference docs, the
cheatsheets, the consultant role and the Key Locations line to main.
Drops resolver jargon and disclaimers from the kept sites. Replaces the
keyword-allow-list guard with a short test pinning the exact sites and
the owner's rule. R9 now awaits the owner's sign-off at the pr gate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompts name framework paths that do not exist in adopter workspaces; agents fall back to find / (Spec 1658 finding M14)

1 participant